@isTest(SeeAllData=true)
private class Test_OpportunityClass
{
    public static testMethod void methodOne()
    {
Test.startTest();
        Campus__c cmps = new Campus__c(Name = 'Unit Test', Active__c = True);
        cmps.recordTypeId = Schema.sObjectType.Campus__c.getRecordTypeInfosByName().get('ULA - Campus').getRecordTypeId();
        insert cmps;
        
        Program__c prgm = new Program__c(Name = 'Unit Test', Active__c = True);
        prgm.recordTypeId = Schema.sObjectType.Program__c.getRecordTypeInfosByName().get('ULA - Traditional Program').getRecordTypeId();
        insert prgm;
        
        Catalog__c ctlg = new Catalog__c(Catalog_Name__c = 'Unit Test', 
                                            Active__c = True, Campus__c = cmps.Id, Program__c = prgm.Id);
        ctlg.X3_Payments__c = true;
        ctlg.X4_Payments__c = true;
        ctlg.X5_Payments__c = true;
        ctlg.X10_Payments__c = true;
        ctlg.X11_Payments__c = true;
        ctlg.X12_Payments__c = true;
        ctlg.Early_Payoff__c = true;
        ctlg.recordTypeId = Schema.sObjectType.Catalog__c.getRecordTypeInfosByName().get('ULA - Traditional Catalog').getRecordTypeId();
        insert ctlg;
        
        Account acc = new Account();
        acc.LastName = 'Test';
        acc.FirstName = 'Unit';
        
        /*acc.Account_Assigned_Date__c = Date.valueOf('2012-02-27');
        acc.Age_Rage__pc = '24 to 39';
        acc.Birth_Date__c = Date.valueOf('1982-01-03');
        acc.Delegation_or_Municipality__c = 'Benito Juarez';
        acc.Do_Not_Text_Message__pc = false;
        acc.Exterior_Number__c = '10';
        acc.Extra_curricular_activities__c  = 'Soccer';
        acc.Father_s_Email__c = 'jose@father.com';
        acc.Father_s_First_Name__c = 'Jose';
        acc.Father_s_Last_Name__c = 'Gonzalez';
        acc.Gender__pc = 'Male';
        acc.Other_City__c = 'México DF';
        acc.Other_Postal_Code__c = '03100';
        acc.Other_Street__c = 'Porfirio Díaz';
        acc.Personal_Email__pc   = 'pablo@prueba.com';
        acc.PersonEmail = 'pablo@prueba.com';
        acc.PersonMobilePhone = '5598741230';
        acc.Phone = '5598741230';
        acc.Preferred_Email__pc  = 'Personal Email';
        acc.Preferred_Phone__pc = 'Mobile Phone';
        */
        acc.RecordTypeId = Schema.Sobjecttype.Account.getRecordTypeInfosByName().get('ULA - Working Adult Student Account').getRecordTypeId();
        acc.Status__c = 'Prospect';
        
        insert acc;
        
        Opportunity oppty = new Opportunity();
        oppty.Name= 'Unit Test opt';
        oppty.AccountId = acc.Id;
        oppty.RecordTypeId = Schema.Sobjecttype.Opportunity.getRecordTypeInfosByName().get('ULA - Working Adults Layout').getRecordTypeId();
        oppty.Registrant_Type__c = 'High School - Local';
        oppty.StageName = 'Application Started';
        oppty.Campus__c = cmps.Id;
        oppty.Program__c = prgm.Id;
        oppty.Catalog__c = ctlg.Id;
        oppty.Payment_plan__c = '3';
        oppty.CloseDate = Date.valueOf('2012-04-01');
        insert oppty;
        Opportunity opp = [Select Id,Quoted_Tuition_discount__c,Espa_Discount_Type__c,Quoted_Registration_discount__c, account.Name,Catalog__r.id,name,accountId,Payment_plan__c,Catalog__c from opportunity where accountId=:acc.Id limit 1];
        System.debug('----------IN Test ------------- '+ opp);
        Pagereference pageSampleRef = Page.AcceptanceLetter;
    Test.setCurrentPageReference(pageSampleRef);
       
    ApexPages.StandardController sc2 = new ApexPages.StandardController(opp);
    AcceptanceLetterExtnCltr exSample= new AcceptanceLetterExtnCltr(sc2);
    exSample.catalogPricing = new List<Catalog_Pricing__c>();
    exSample.catalogPricing.add(new Catalog_Pricing__c());
    
    Decimal dt = exSample.getTotal();
    dt = exSample.getTotalPlan();
    dt = exSample.getCostPlan();
    String str = exSample.getDat();
    Boolean bt  = exSample.getlst();
        Test.stopTest();
        
    }
}